{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 对比单线程和多线程在服务器上下载的数据的准确性"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "# %run ../../common_utils.ipynb\n",
    "import sys\n",
    "sys.path.append(\"/home/loong/jupyter\")\n",
    "import common_utils\n",
    "from common_utils import *"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "load 103 file,data shape (103819, 8)\n",
      "(103819, 8)\n",
      "load 103 file,data shape (103819, 8)\n",
      "(103819, 8)\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "True"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "query_flag = 'AC_type1'\n",
    "start_date = '2023-12-15'\n",
    "file_path1 = data_of_dir('data',query_flag,start_date)\n",
    "file_path2 = data_of_dir('data_mt',query_flag,start_date)\n",
    "df2 = batch_load_data(file_path2)\n",
    "print(df2.shape)\n",
    "df1 = batch_load_data(file_path1)\n",
    "print(df1.shape)\n",
    "df1.equals(df2)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "py311",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
